import { createApp } from "vue"
import { createPinia } from "pinia"

import App from "./App.vue"
import router from "./router"
import { elementUI } from "@/plugin/ui.ts"
import "./assets/css/main.less"
import "@/permission" // permission control
import { DatePicker, DropdownMenu, Button, Dialog } from "vant"

const app = createApp(App)

elementUI(app)
app.use(DatePicker)
app.use(DropdownMenu)
app.use(Dialog)
app.use(Button)

app.use(createPinia())

app.use(router)

app.mount("#app")
